﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.ApiAdminServices;

/// <summary>
/// 输入Mapper
/// 邮件发送配置
/// </summary>
public class ApiEmailSendConfigMapperOut : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        // 示例
        //config.ForType<xxxx,xxxOut>()
        //.Map(dest => dest.MigrationId, src => src.MigrationId)//
        //.Map(dest => dest.Id, src => src.Id)//
        //;

        // Description 邮件发送配置
        //config.ForType<SysEmailSendConfig,ApiEmailSendConfigOut>()

        #region 公共字段

        //.Map(dest => dest.Id, src => src.Id)//  ID
        //.Map(dest => dest.ExtensionData, src => src.ExtensionData)//  扩展字段
        //.Map(dest => dest.CreatorUserId, src => src.CreatorUserId)//  创建用户ID
        //.Map(dest => dest.CreatorUserName, src => src.CreatorUserName)//  创建用户
        //.Map(dest => dest.CreationTime, src => src.CreationTime.ToStringLongDate())// 创建时间
        //.Map(dest => dest.UpdateUserId, src => src.UpdateUserId)//  更新用户ID
        //.Map(dest => dest.UpdateUserName, src => src.UpdateUserName)//  更新用户
        //.Map(dest => dest.UpdateTime, src => src.UpdateTime.ToStringLongDate())// 更新时间
        //.Map(dest => dest.IsDeleted, src => src.IsDeleted)//  默认假删除
        //.Map(dest => dest.IsDeletedName, src => src.IsDeleted?"是":"否")//  默认假删除
        //.Map(dest => dest.DeletedUserId, src => src.DeletedUserId)//  删除用户ID
        //.Map(dest => dest.DeletedUserName, src => src.DeletedUserName)//  删除用户
        //.Map(dest => dest.DeletedTime, src => src.DeletedTime.ToStringLongDate())// 删除时间

        #endregion 公共字段

        //.Map(dest => dest.IsEnable, src => src.IsEnable)//  是否启用
        //.Map(dest => dest.EmailSmtpHost, src => src.EmailSmtpHost)//  SMTP服务器
        //.Map(dest => dest.EmailSmtpPort, src => src.EmailSmtpPort)//  邮件服务器Smtp端口
        //.Map(dest => dest.EmailAccount, src => src.EmailAccount)//  邮箱账号
        //.Map(dest => dest.EmailPassword, src => src.EmailPassword)//  邮箱密码
        //.Map(dest => dest.EmailIsHtml, src => src.EmailIsHtml)//  是否包含Html代码
        //.Map(dest => dest.EmailDisplayName, src => src.EmailDisplayName)//  发送者显示名
        //.Map(dest => dest.EmailIsSsl, src => src.EmailIsSsl)//  是否启用SSL加密
        //.Map(dest => dest.Remark, src => src.Remark)//  备注

        #region 自定义

        //.Map(dest => dest.IsEnableName, src => src.IsEnable?"是":"否")//  是否启用
        //.Map(dest => dest.EmailIsHtmlName, src => src.EmailIsHtml?"是":"否")//  是否包含Html代码
        //.Map(dest => dest.EmailIsSslName, src => src.EmailIsSsl?"是":"否")//  是否启用SSL加密

        #endregion 自定义

        //;
    }
}